	<br /><br />
    <span class="col_header">Job Categories</span>
    <div class="col_content clear">
    <?php $temp = 0;?>
    
    <?php foreach($jobtype as $type):?>
        <?php $temp++;?>
        <div class="job_category">
        <span class="category_parent"><a href=""><?php echo $type->name;?></a></span>
        <ul>
        <?php foreach($subjobtype as $subtype):?>
            <?php if($subtype->jobtype_id == $type->id):?>                
                    <?php $count = Job::model()->countByAttributes(array('subjobtype_id'=>$subtype->id, 'status'=>2));?>
                    <li><a href="index.php?r=job/viewType&id=<?php echo $subtype->id;?>" class="category_child"><?php echo $subtype->name;?> </a>(<a href=""><?php echo $count;?></a>)</li>
            <?php endif?>
        <?php endforeach?>
        <p class="clear"></p> 
        </ul>
        </div>
        <?php if($temp%3 == 0):?>
            <p class="clear"></p> 
        <?php endif?>
    <?php endforeach?>
    </div>